#pragma once

#include <iostream>
#include <vector>

typedef std::pair<float,float> Point;

class Figure{
public:
	Point center;
	float h;
	float max_h;
	float _time;
	float Vi;
	bool going_up;
	std::vector<Point> vecPoints;
	Figure();
	virtual ~Figure();
	virtual void draw()=0;
	/*update the points into vecPoints using center v*/
	virtual void updatePoints()=0;
};

class Triangle : public Figure{
private:
	float radio;
	int option_draw;//how its draw
public:
	~Triangle();
	explicit Triangle(Point,float);
	void draw();
	void updatePoints();
};

class Rectangle : public Figure{
private:
	float radio_min;
	float radio_max;
public:
	~Rectangle();
	explicit Rectangle(Point,float);
	void draw();
	void updatePoints();
};

